<?php
class PC4_Crud_Upload_TabelaN extends PC4_Crud_Upload2{
	
	protected $modeloN;

	function __construct($caminho, $tabela, $tabelaCategoria, $uploads = array(), $campoCategoria = array('nome'), $fk = '', $campoId = 'id', $validacoes = array()) {
		parent::__construct($caminho, $tabela, $uploads, $validacoes);
		$this->modeloN = new PC4_Crud_TabelaN($tabela, $tabelaCategoria, $campoCategoria, $fk, $campoId, $validacoes);
	}
	
	function lista($pagina = 1, $limite = -1, $debug = false) {
		return $this->modeloN->lista($pagina, $limite, $debug);
	}
	/**
	 * @return the $join
	 */
	public function getJoin() {
		return $this->modeloN->getJoin();
	}

	/**
	 * @param $join the $join to set
	 */
	public function setJoin($join) {
		$this->modeloN->setJoin($join);
	}
	
}
	